<?php session_start();
	if (isset($_SESSION["login"])) {
		redirect('admin');
	}
?>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<!DOCTYPE html>
<html>
<head>
	<title>Kleith | <?=$titulo?></title>
	<?php 
		echo link_tag('images/favicon.ico','shortcut icon');
		echo link_tag('images/favicon.ico','icon');
		echo link_tag('css/login.css');
	?>
</head>
<body>
	<div id="container">
		<header>
			<? echo img('images/login_image.jpg');?>
		</header>
		<hr />
		<?php echo form_open('iniciar_sesion'); ?>
			<ul>
				<li><h1>Login</h1></li>
				<li>
					<strong>Usuario</strong>
					<input type="text" name="user" />
				</li>
				<li>
					<strong>Contraseña</strong>
					<input type="password" name="password" />
				</li>
				<?php
				if (isset($_GET["error"]) && $_GET['error']=="si"){ ?>
				<li>
					<b style="color: red;">Datos incorrectos</b>
				</li>
				<? } ?>
				<li><input type="submit" value="Entrar" /></li>
			</ul>
		<?php echo form_close(); ?>
		<footer>
			2012 &copy; Kleith - <a href="http://kleith.com.ar">www.kleith.com.ar</a>
		</footer>
	</div>
</body>
</html>